<template>
  <div>
    这个按钮可以给父组件传值<button @click="son4Btn">按钮</button>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
    };
  },
  methods: {
   son4Btn() {
    //给父组件的getSon4Msg赋值
    this.$parent.getSon4Msg = '我是son4'
    //调用父组件son4Fun方法
    this.$parent.son4Fun()
   }
  },
};
</script>

<style scoped>
</style>

